package git.determinal.template.controller;

import git.determinal.template.model.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class UserController {

    /**
     * 用户登录
     * @return
     */
    @RequestMapping(value="/login",method= RequestMethod.POST)
    public String login(@RequestBody User user) {
        return "用户名:" + user.getUsername() + ",密码:" + user.getPassword()+",接收成功—intanceServer2--10002";
    }
}